<?$fecha = date("d")."-".date("m")."-".date("Y");
include ("../conectarse.php");
$documento = $_POST['documento'];
if($_GET['documento']!=""){$documento = $_GET['documento'];}
$consulta = "select * from mutuales where mut_cuit like $documento";
$resultado = mysql_query($consulta);
$fila = mysql_fetch_array($resultado);

$nombre = $fila['mut_nombre'];
$matricula = $fila['mut_matricula'];
$descuento = $fila['mut_descuento'];
$cuit = $fila['mut_cuit'];
$provincia = $fila['mut_provincia'];
$partido = $fila['mut_partido'];
$localidad = $fila['mut_localidad'];
$calle = $fila['mut_calle'];
$altura = $fila['mut_altura'];
$piso = $fila['mut_piso'];
$departamento = $fila['mut_departamento'];
$codigopostal = $fila['mut_codigopostal'];
$correo = $fila['mut_correo'];
$nombreresponsable = $fila['mut_nombre_responsable'];
$apellidoresponsable = $fila['mut_apellido_responsable'];
$cargoresponsable = $fila['mut_cargo_responsable'];
$cuitresponsable = $fila['mut_cuit_responsable'];
$telefono = $fila['mut_telefono'];
$cantidadafiliados = $fila['mut_af'];
$id = $fila['mut_id'];

?>
<body bgcolor = "#005F8C" alink = "white" vlink = "white" link = "white" text = "white">
<table width  ="100%" height = "100%" cellpadding = "0" cellspacing = "0">

<tr valign = "top">

<td align = "center">

<!--BARRA                    -->

<?include ("./barra/barramutual.php");?>

<!-- FIN DE LA BARRA                    -->
</td>


</tr>


<tr valign = "top" height = "100%"><td align = "left">

<!-- CUERPO DEL SISTEMA -->
<table cellpadding = "0" cellspacing = "0" border  ="0" height = "100%">
<tr valign = "middle"><td bgcolor = "black">


<?include ("links.php");?>



<!-- FIN DEL CUERPO DEL SISTEMA -->








</td><form method = "POST" action="cuotas.php?idmutual=<?echo $id?>"><td width = "100%" ALIGN = "CENTER"><br>

<table height = "100%"><TR valign="top"><TD>
<table border ="2" cellspacing = "0" cellpadding = "0" bordercolor = "white">
<tr><td>




        <table><tr><td colspan  ="4"></td></tr>

  <tr><td colspan  = "4" align="center"><b>CUOTAS MUTUAL</td></tr>
  
   <tr><TD>
<table width="600" align="center">
<tr><TD>CANTIDA DE CUOTAS</TD>
<TD>IMPORTE TOTAL</TD>
<TD>IMPORTE POR CUOTA</TD><br></tr>
<tr><TD colspan="3"><hr></TD></tr>
<?include ("../conectarse.php");

$id = $_GET['idmutual'];
$consulta = "select * from cuotas where cuo_id_mutual like '$id'";
$resultado = mysql_query($consulta);
while($fila = mysql_fetch_array($resultado)){?>

<TR><TD><?echo $fila['cuo_cantidad'];?></TD>
<TD><?echo $fila['cuo_importe_total'];?></TD>
<TD><?echo $fila['cuo_importe_1'];?></TD></TR>

<?}?>
<?/*INSERT INTO  `wi530914_mutuar`.`cuotas` (
`cuo_id` ,
`cuo_id_mutual` ,
`cuo_importe_1` ,
`cuo_importe_total` ,
`cuo_cantidad` ,
`cuo_activo`
)
VALUES (
NULL ,  '1',  '1250',  '4000',  '4',  '1'
);

*/?>
</form><form action = "guardacuotas.php" METHOD = "POST">
<input type = "hidden" name = "id" value = "<?echo $id;?>">
<TR><TD><input type = "text" name = "cantidad"></TD>
<TD><input type = "text" name = "importe2"></TD>
<TD><input type = "text" name = "importe1"></TD></TR>

</table>
  </TD></tr>
  <tr>
  <TD COLSPAN = "4" ALIGN = "center"><input type = "submit" value = "Guardar"></td></tr>
</form><form action  = "index.php" method = "POST">




  <tr>
  <TD COLSPAN = "4" ALIGN = "CENTER"><input type = "submit" value = "Cerrar"></td></tr>









</form></tr></table>












</TD></TR></table>




















</td></tr></table>




























</td>
</td></tr>

</table>
